<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<c:set var="path" value="${pageContext.request.contextPath }"></c:set>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>CMDB-添加检查单</title>
    <link href="${path}/css/style.css" rel="stylesheet" type="text/css">
    <link href="${path}/sys/role_management/add_role.css" rel="stylesheet" type="text/css">
    <link href="${path}/common/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
    <script src="${path}/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="${path}/js/user_js.js"></script>
    <script src="${path}/common/plugins/bootstrap/js/bootstrap.js"></script>
    <script src="${path}/common/plugins/layer/layer.js"></script>
    <script src="add_edit_privilege.js"></script>
</head>
<body>
<input type="hidden" id="priId" value="${priId}" />
<div class="content_condition oneContent">
    <div class="content_group">
        <div class="span5">
            <label class="control-label">父类型:</label>
            <div class="controls">
                <span >${sysPri.priName}</span>
            </div>
        </div>
    </div>
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">名称:</label>
            <div class="controls">
                <input id="priName" type="text" value="${sysPrivilege.priName}" >
                <span class="redbtn">*</span>
            </div>
        </div>
    </div>
     
     <div class="content_group">
        <div class="span5">
            <label class="control-label">程序代码:</label>
            <div class="controls">
                <input id="progCode" type="text" value="${sysPrivilege.progCode}" >
            </div>
        </div>
    </div>
    <div class="content_group">
        <div class="span5">
            <label class="control-label">页面包含操作:</label>
            <div class="controls">
		                新增<input type="checkbox" name="actionPri" value="1" <c:if test="${fn:contains(sysPrivilege.actionPri,'1')}">checked</c:if>>&nbsp;&nbsp;
		                修改<input type="checkbox" name="actionPri" value="2" <c:if test="${fn:contains(sysPrivilege.actionPri,'2')}">checked</c:if>>&nbsp;&nbsp;
		                删除<input type="checkbox" name="actionPri" value="3" <c:if test="${fn:contains(sysPrivilege.actionPri,'3')}">checked</c:if>>
		        <input type="hidden" id="actionPri" value="${sysPrivilege.actionPri }"/>
            </div>
        </div>
    </div>
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">是否显示:</label>
            <div class="controls">
                <span class="radio_box"><input type="radio" value="0" name="show_hide_flag" <c:if test='${sysPrivilege.showHideFlag == null || sysPrivilege.showHideFlag == 0 }' >checked</c:if> >是</span>
                <span class="radio_box"><input type="radio" value="1" name="show_hide_flag" <c:if test='${sysPrivilege.showHideFlag == 1 }' >checked</c:if> >否</span>
            </div>
        </div>
    </div>
    <div class="content_group">
        <div class="span5">
            <label class="control-label">同级别优先级:</label>
            <div class="controls">
                <input id="priPrior" type="text" value="${sysPrivilege.priPrior}" >
                <span class="redbtn">*</span>
                <span class="redbtn">优先级必须为数字，"1"&nbsp;&nbsp;优先级最高</span>
            </div>
        </div>
    </div>
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">状态:</label>
            <div class="controls">
                <select id="state" >
                		<option <c:if test="${sysPrivilege.state==null||sysPrivilege.state=='9ga'}">selected</c:if>>启用</option>
                    	<option <c:if test="${sysPrivilege.state=='9gb'}">selected</c:if>>关闭</option>
                </select>
                <span class="redbtn">*</span>
            </div>
        </div>
    </div>
    
    <div class="last_group">
        <div class="span5">
            <label class="control-label">备注:</label>
            <div class="controls">
                <textarea id="remark" >${sysPrivilege.remark}</textarea>
            </div>
        </div>
    </div>
	</div>
   
<div class="btn_bottom">
    <div class="spanbtn">
    	
    	<c:if test="${msg == 'add_bro'}">
       		<button class="press_btn1 KeepBrother"><i class="save top_current"></i>保存同级节点</button>
    	</c:if>
    	
    	<c:if test="${msg == 'add_chi'}">
       		<button class="press_btn1 KeepChild"><i class="save top_current"></i>保存子节点</button>
    	</c:if>
    	
    	<c:if test="${sysPrivilege.priName!=null}">
       		<button class="press_btn1 Sub"><i class="save top_current"></i>提交</button>
    	</c:if>
        <button class="press_btn2 Close"><i class="del top_current"></i>关闭</button>
    </div>
</div>



</body>
<script type="text/javascript">

</script>
</html>